package net.sky.oa.service.asms.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import net.sky.oa.dao.asms.AsmsDao;
import net.sky.oa.service.asms.AsmsService;

import com.htsoft.core.service.impl.BaseServiceImpl;

@SuppressWarnings("unchecked")
@Service
@Transactional
public class AsmsServiceImpl extends BaseServiceImpl<Object> implements AsmsService {

	@Autowired
	private AsmsDao asmsDao;
	
	
	public List findStudentMobiles(int terId,int teaId,int onStatus) throws Exception { 
		return asmsDao.findStudentMobiles(terId, teaId, onStatus);
	}

	public String findCurrentTerm() throws Exception {
		return asmsDao.findCurrentTerm();
	}
	
	public String findHistoryTerms()throws Exception{
		return asmsDao.findHistoryTerms();
	}

	public List findTerms() throws Exception {
		
		return asmsDao.findTerms();
	}

	public String findStuNameByMobile(String mobile) throws Exception {
		
		return asmsDao.findStuNameByMobile(mobile);
	}
	
	public List findStudentMobiles(String terIds,int teaId,int claId,int onStatus) throws Exception  {
		return asmsDao.findStudentMobiles(terIds, teaId, claId, onStatus);
	}
	public List findHistoryStudentMobiles(String terId,int teaId,int claId,int onStatus) throws Exception {
		return asmsDao.findHistoryStudentMobiles(terId, teaId, claId, onStatus);
	}
	
	public long findTeaId(String teaName) throws Exception {
		return asmsDao.findTeaId(teaName);
	}
}
